package com.atguigu.difficult;

public class Demo {

    static {
        System.out.println("a = " + Demo.a);
        a = 2;
        System.out.println("a = " + Demo.a);
    }
    private static int a = 1; //a=1称为静态变量的显式赋值
    public static void main(String[] args) {
        System.out.println("a = " + a);
    }
}
